package com.ltmonitor.jt809.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import com.ltmonitor.entity.TenantEntity;
/**
 * 运营商平台信息
 * @author DELL
 */
@Entity
@Table(name="platformInfo")
@org.hibernate.annotations.Proxy(lazy = false)
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) 
public class PlatformInfo extends TenantEntity implements Serializable{
	public static String CONNECTED = "connected";
	public static String CLOSED = "closed";
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	private long entityId;
	public  long getEntityId() {
		return entityId;
	}
	public  void setEntityId(long value) {
		entityId = value;
	}
	
	public PlatformInfo()
	{
		this.mainLinkState = CLOSED;
		this.sublinkState = CLOSED;
		setCreateDate(new Date());
	}
	
	//上级平台给下级平台分配的唯一Id
	private int platformId;
	
	private String name;
	//下级平台登录账号
	private String userId;
	//密码
	private String password;
	//从链路服务器IP
	private String sublinkServerIp;
	//从链路端口
	private int sublinkPort;
	//主连接状态
	private String mainLinkState;
	//从连接状态
	private String sublinkState;
	//定时自动查岗开始时间，如果为空，则不自动查岗
	private String checkStartTime;
	
	private String checkEndTime;
	//定时查岗间隔
	private int checkInterval;
	//查岗问题
	private String checkQuestion;
	
	
	public int getPlatformId() {
		return platformId;
	}
	public void setPlatformId(int platformId) {
		this.platformId = platformId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSublinkServerIp() {
		return sublinkServerIp;
	}
	public void setSublinkServerIp(String sublinkServerIp) {
		this.sublinkServerIp = sublinkServerIp;
	}
	public int getSublinkPort() {
		return sublinkPort;
	}
	public void setSublinkPort(int sublinkPort) {
		this.sublinkPort = sublinkPort;
	}
	public String getCheckStartTime() {
		return checkStartTime;
	}
	public void setCheckStartTime(String checkStartTime) {
		this.checkStartTime = checkStartTime;
	}
	public String getCheckEndTime() {
		return checkEndTime;
	}
	public void setCheckEndTime(String checkEndTime) {
		this.checkEndTime = checkEndTime;
	}
	public int getCheckInterval() {
		return checkInterval;
	}
	public void setCheckInterval(int checkInterval) {
		this.checkInterval = checkInterval;
	}
	public String getMainLinkState() {
		return mainLinkState;
	}
	public void setMainLinkState(String mainLinkState) {
		this.mainLinkState = mainLinkState;
	}
	public String getSublinkState() {
		return sublinkState;
	}
	public void setSublinkState(String sublinkState) {
		this.sublinkState = sublinkState;
	}
	public String getCheckQuestion() {
		return checkQuestion;
	}
	public void setCheckQuestion(String checkQuestion) {
		this.checkQuestion = checkQuestion;
	}
	

}
